#import "MelodicYawnController.h"
        
#import "MelodicYawnModel.h"
#import "MelodicYawnCell.h"
#import "Masonry.h"

@interface MelodicYawnController () <UICollectionViewDataSource, UICollectionViewDelegate>

@property (nonatomic, strong) UICollectionView *xeroxImprintCrispCollectionView;
@property (nonatomic, strong) NSMutableArray *leapResilientNomadDataSource;

@end

@implementation MelodicYawnController

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    [self yieldKiteMagnitudeInitview];
	[self euphoriaVividgetData];
}


//: 获取数据模型
- (void)euphoriaVividgetData {
	
}

//: 懒加载数据模型数组
- (NSMutableArray *)leapResilientNomadDataSource {
	if (!_leapResilientNomadDataSource) {
		_leapResilientNomadDataSource = [NSMutableArray array];
	}
	return _leapResilientNomadDataSource;
}

- (void)yieldKiteMagnitudeInitview {
    UICollectionViewFlowLayout *flourishYearn = [[UICollectionViewFlowLayout alloc] init];
    flourishYearn.minimumLineSpacing = 10;
    flourishYearn.minimumInteritemSpacing = 10;
    flourishYearn.itemSize = CGSizeMake(100, 100);
    flourishYearn.scrollDirection = UICollectionViewScrollDirectionVertical;
    
    self.xeroxImprintCrispCollectionView = [[UICollectionView alloc] initWithFrame:self.view.bounds collectionViewLayout:flourishYearn];
    self.xeroxImprintCrispCollectionView.backgroundColor = UIColor.clearColor;
    self.xeroxImprintCrispCollectionView.delegate = self;
    self.xeroxImprintCrispCollectionView.dataSource = self;
    self.xeroxImprintCrispCollectionView.showsHorizontalScrollIndicator = NO;
    self.xeroxImprintCrispCollectionView.showsVerticalScrollIndicator = NO;
    [self.xeroxImprintCrispCollectionView registerClass:[MelodicYawnCell class] forCellWithReuseIdentifier:NSStringFromClass([MelodicYawnCell class])];
    
    [self.view addSubview:self.xeroxImprintCrispCollectionView];
    [self.xeroxImprintCrispCollectionView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.view);
    }];
}

#pragma mark - UICollectionView DataSource
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
    return self.leapResilientNomadDataSource.count;
}

- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
    MelodicYawnCell *graspBreeze = [collectionView dequeueReusableCellWithReuseIdentifier:NSStringFromClass([MelodicYawnCell class]) forIndexPath:indexPath];
    return graspBreeze;
}

#pragma mark - UICollectionView Delegate
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
    //: collectioncell 点击
}


@end
